<template>
  <img alt="Vue logo" src="./assets/logo.png" />
  <HelloWorld msg="Hello Vite" @getData="saveData" school="深圳硅谷" />
  <hr />
  <router-view></router-view>
</template>

<script>
import HelloWorld from "./components/HelloWorld.vue"

export default {
  name: "App",
  components: {
    HelloWorld,
  },
  methods: {
    saveData(value) {
      console.log("接收到了子组件传递过来的数据...", value)
    },
  },
}
</script>
